package cn.signalpha.modules.shop.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderSettleWayEnum {

    /**
     * 二清
     */
	ONE("二清", 1),

	/**
	 * 分账
	 */
	TOW("分账", 2),

	;

	private final String name;
	private final int category;

	public static OrderSettleWayEnum instance(int category){
		for(OrderSettleWayEnum goodsTypeEnum : values()){
			if (goodsTypeEnum.getCategory() == category) {
				return goodsTypeEnum;
			}
		}
		return null;
	}
}
